package com.liumuxian.exam.dao;


import com.liumuxian.exam.pojo.ExamQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ExamQuestionDao  extends JpaRepository<ExamQuestion,String>, JpaSpecificationExecutor<ExamQuestion> {
    @Query(value = "SELECT * FROM tb_examquestion  WHERE examinfoid = ? ORDER BY weight ASC", nativeQuery = true)
    List<ExamQuestion> findByExaminfoid(String Examinfoid);
}
